package es.ats.codington.festival.interfaces.services;

import java.util.List;

import es.ats.codington.festival.domain.Place;
import es.ats.codington.festival.exceptions.ServiceException;


/**
 * @author Codington_RED
 *
 */
public interface IPlaceService {

	/**
	 * Service to list all places
	 * @return allPlaces
	 * @throws ServiceException
	 */
	public List<Place> getAllPlaces() throws ServiceException;

	/**
	 * Service to to insert a new place
	 * @param place
	 * @param typePlace
	 * @return affectedRows
	 * @throws ServiceException
	 */
	public boolean insertPlace(Place place, String typePlace) throws ServiceException;

	/**
	 * Service to update a place
	 * @param place
	 * @return affectedRows
	 * @throws ServiceException
	 */
	
	public int updatePlace(Place place) throws ServiceException;

}

